how to create an animated chart